import {messages} from "share/common";
import React from 'react'
const applicationConfigData = {
  //申请单管控
  'application-control': {
    description: messages('request-1.key678')/*基于申请单单据上相关的管控设置，应用范围全租户或公司*/,
    configs: [
      {
        moduleName: messages('request-1.key679')/*申请单打印设置*/,
        groupList: [
          {
            fpName: messages('request-1.key680')/*差旅申请单的审批历史*/,
            fpCode: 'taPrintApprovalHistory',
            description: messages('request-1.key681')/*设置是否打印差旅申请单的审批历史*/,
            //配置值
            options: [{ value: 'TRUE', label: messages('common.print')/*打印*/ }, { value: 'FALSE', label: messages('request-1.key682')/*不打印*/ }],
          },
          {
            fpName: messages('request-1.key683')/*申请单的提交日期、审批通过日期*/,
            fpCode: 'printDate',
            description: messages('request-1.key684')/*设置是否打印差旅申请单、费用申请单的提交日期、审批通过日期的字段及值*/,
            //配置值
            options: [{ value: 'TRUE', label: messages('common.print')/*打印*/ }, { value: 'FALSE', label: messages('request-1.key682')/*不打印*/ }],
          },
          {
            fpName: messages('request-1.key685')/*费用申请单的审批历史*/,
            fpCode: 'eaPrintApprovalHistory',
            description: messages('request-1.key686')/*设置是否打印费用申请单的审批历史*/,
            //配置值
            options: [
              { value: 'TRUE', label: messages('common.print')/*打印*/ },
              { value: 'FALSE', label: messages('request-1.key682')/*不打印*/ },
            ],
          },
        ]
      },
      {
        moduleName: messages('request-1.key687')/*申请单提交管控*/,
        groupList: [
          {
            fpName: messages('request-1.key688')/*差旅申请单行程必填*/,
            fpCode: 'taItineraryRequired',
            description: messages('request-1.key689')/*设置差旅申请单上的行程是否必填，若配置必填，行程为空时则不允许提交*/,
            //配置值
            options: [
              { value: 'TRUE', label: messages('request-1.key690')/*必填*/ },
              { value: 'FALSE', label: messages('request-1.key691')/*不必填*/, }
            ],
          },
          {
            fpName: messages('request-1.key827')/*差补必填*/,
            fpCode: 'subsidiesRequired',
            description: messages('request-1.key828')/*设置差旅申请单提交时，校验是否有差补行程明细。若设置必填，则无差补行程明细时不允许提交单据*/,
            //配置值
            options: [
              { value: 'TRUE', label: messages('request-1.key690')/*必填*/ },
              { value: 'FALSE', label: messages('request-1.key691')/*不必填*/, }
            ],
          },
          {
            fpName: messages('request-1.key692')/*行程连续*/,
            fpCode: 'taItineraryContinuous',
            description: messages('request-1.key693')/*设置差旅单提交行程时，是否校验行程连续*/,
            //配置值
            options: [
              { value: 'TRUE', label: messages('request-1.key694')/*校验*/ },
              { value: 'FALSE', label: messages('request-1.key695')/*不校验*/ }
            ],
            isHide: !React.Component.prototype.checkFunctionProfiles('Customize.expense.type', [true])
          },
          {
            fpName: messages('request-1.key696')/*首尾行程一致*/,
            fpCode: 'taItineraryHeadTailConsistent',
            description: messages('request-1.key697')/*设置差旅单提交时，校验行程1的出发城市是否与行程N的到达城市一致*/,
            //配置值
            options: [
              { value: 'TRUE', label: messages('request-1.key694')/*校验*/ },
              { value: 'FALSE', label: messages('request-1.key695')/*不校验*/ }
            ],
            isHide: !React.Component.prototype.checkFunctionProfiles('Customize.expense.type', [true])
          },
          {
            fpName: messages('request-1.key698')/*差旅申请单的出差往返日期重叠*/,
            fpCode: 'taDateOverlap',
            description: messages('request-1.key699')/*设置是否校验差旅申请单的出差往返日期重叠，若校验，则不允许提交单据*/,
            isHasExtra: true,
            isShowExtra: '1002',//父关系选择TRUE时显示子级
            exTraCondition: {
              fpName: messages('request-1.key700')/*同一天内不算重叠*/,
              fpCode: 'taDateOverlapAllowed',
              initialValue: 'TRUE',
              options: [
                { value: 'TRUE', label: messages('common.yes')/*是*/ },
                { value: 'FALSE', label: messages('common.no')/*否*/ },
              ],
            },
            //配置值
            options: [
              { value: '1002', label: messages('request-1.key701')/*按天校验*/ },
              { value: '1003', label: messages('request-1.key702')/*按时间校验*/ },
              { value: '1001', label: messages('request-1.key695')/*不校验*/ },
            ],
          },
          {
            fpName: messages('request-1.key703')/*是否校验特定地区出差*/,
            fpCode: 'specificLevelOID',
            description: messages('request-1.key704')/*校验行程的城市是否属于设置的特定城市组，若是则为单据标记“特定地区出差”标签，不设置则不校验*/,
            type: 'select',
            defaultLabel: messages('request-1.key705')/*无*/,
            dataLoading: false,
            dataList: [],
            url: '/api/levels/org',
            dependCode: 'levelConfig' //依赖于组织字段的值
          },
          {
            fpName: messages('request-1.key706')/*申请单开始日期*/,
            fpCode: 'floatDays',
            description: messages('request-1.key707')/*若设置当前日期前N天，则可补提N天内的单据；若设置当前日期后N天，则可提前N天提交单据*/,
            tooltipInfo: <div>
              <div>{messages('request-1.key708')/*若当前日期为1月4日：*/}</div>
              <div>{messages('request-1.key709')/*设置当前日期前3天时，则表示可提交1月1日及之后的单据*/}</div>
              <div>{messages('request-1.key710')/*设置当前日期时，则表示可提交1月4日及之后的单据*/}</div>
              <div>{messages('request-1.key711')/*设置当前日期后3天时，则表示可提交1月7日及之后的单据*/}</div>
            </div>,
            type: 'comp-float-days',
            defaultLabel: messages('request-1.key712')/*不限制 （天）*/
          }
        ]
      },
      {
        moduleName: messages('request-1.key713')/*申请单预算设置*/,
        groupList: [
          {
            fpName: messages('request-1.key714')/*允许手动添加差补预算*/,
            fpCode: 'taEnableSubsidyBudget',
            description: messages('request-1.key715')/*设置是否允许员工手工添加差补费用类型的预算*/,
            //配置值
            options: [
              { value: 'TRUE', label: messages('request-1.key716')/*允许*/ },
              { value: 'FALSE', label: messages('request-1.key717')/*不允许*/ }
            ],
            isHide: React.Component.prototype.checkFunctionProfiles('Customize.expense.type', [true])
          },
        ]
      }
    ]
  }
};
export default applicationConfigData
